import { ItemModel } from "./itemModel"

export class BaseInfoModel {
    //exp:number//经验值
    skillExp: number//进阶经验
    vip: number//爵位
    vipExp: number//Vip经验
    chargeMoney: number
    gameSound: number //游戏声音
    battleSound: number //战斗声音
    bgSound: number //背景声音
    background: number//出生背景
    ad: number
    dayTime: number
    weekDayIndex: number
    times: number
    equipmentAttriChose: boolean[]
    callProgress: number
    signIn: number//1可以签到 2不能签到
    signIn2: number//游戏广告 1可以签到 2不能签到
    maxPower: number
    mapProgressMax: number
    addBagCapacity: number//使用金丝线提升背包格数
    bagAddSize: number
    eqBagAddSize: number
    eqBag2AddSize: number
    trBagAddSize: number
    haveShowDieInfor: boolean
    routeSeed: any
    saveTime: number
    vipTime: number
    longVip: boolean
    newPlayerResources: any
    mainTip: boolean
    sweepTip: boolean
    disableAutoMap: boolean
    autoChangeGem: boolean//换装备时自动切换宝石
    resetWeekFlag: boolean
    closeAnimation: boolean
    refreshBarTimes: number
    diamondRefreshBarTimes: number
    totalRefreshBarTimes: number
    barRecuritTimes: number
    barRecuritTimes1: number
    animationType: number
    animationSet: any
    netCheckCoe: number
    netCheckNum: number
    newUserGift: number
    constructor(opts: any = {}) {
        //this.exp = opts.exp || 0
        this.skillExp = opts.skillExp || 0
        this.vip = opts.vip || 0
        this.vipExp = opts.vipExp || 0
        this.gameSound = opts.gameSound || 1
        this.battleSound = opts.battleSound || 1
        this.bgSound = opts.bgSound || 1
        this.background = opts.background || 0
        this.ad = opts.ad || 0
        this.dayTime = opts.dayTime || 0
        this.weekDayIndex = opts.weekDayIndex || 0
        this.times = opts.times || 0
        this.equipmentAttriChose = opts.equipmentAttriChose || [false, false, false, false, false, false, false, false, false, false, false, false, false, false, false]
        this.callProgress = opts.callProgress || 0
        this.signIn = opts.signIn || 1
        this.signIn2 = opts.signIn2 || 1
        this.maxPower = opts.maxPower || 0
        this.mapProgressMax = opts.mapProgressMax || 0
        this.addBagCapacity = opts.addBagCapacity || 0
        this.haveShowDieInfor = opts.haveShowDieInfor || false
        this.routeSeed = opts.routeSeed || {}
        this.saveTime = opts.saveTime || 0
        this.chargeMoney = opts.chargeMoney || 0
        this.vipTime = opts.vipTime || 0
        this.mainTip = opts.mainTip || false
        this.sweepTip = opts.sweepTip || false
        this.disableAutoMap = opts.disableAutoMap || false
        this.autoChangeGem = opts.autoChangeGem || false
        this.resetWeekFlag = opts.resetWeekFlag || false
        this.closeAnimation = opts.closeAnimation || false
        this.refreshBarTimes = opts.refreshBarTimes || 0
        this.diamondRefreshBarTimes = opts.diamondRefreshBarTimes || 0
        this.animationType = opts.animationType || 2
        this.barRecuritTimes = opts.barRecuritTimes || 0
        this.barRecuritTimes1 = opts.barRecuritTimes1 || 0
        this.bagAddSize = opts.bagAddSize || 0
        this.eqBagAddSize = opts.eqBagAddSize || 0
        this.eqBag2AddSize = opts.eqBag2AddSize || 0
        this.trBagAddSize = opts.trBagAddSize || 0
        this.animationSet = opts.animationSet || {showDamage: true, showCd: true, showSpeed: true, showAttack: true}
        this.netCheckCoe = opts.netCheckCoe || 0
        this.netCheckNum = opts.netCheckNum || 0
        this.longVip = opts.longVip || false
        this.newPlayerResources = opts.newPlayerResources || 0
        this.totalRefreshBarTimes = opts.totalRefreshBarTimes || 0
        this.newUserGift = opts.newUserGift || 0
    }
}